module.exports = function ($scope, $modalInstance, obj) {

    $.ajax({
        type:'POST',
        url:'https://txy.sylyx.cn/Sapp/App/getOneqrCode',
        data:{
            path:'ticket/goodsDetail?code='+obj.code+'&company_code='+obj.create_company_code,
            wxid:124
        },
        lg:true,
        success: function(ret){
            var aa = JSON.parse(ret);
            $('#qr').attr('src',aa.result);
            $('#wait').remove();
            $('#qr').attr('class', 'ng-show');
        }
    })

    $scope.close = function () {
        $modalInstance.dismiss('cancel');
    }
};